package cc.woori.mobile.bean;

import java.util.Date;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;
import com.google.appengine.api.datastore.Text;

@PersistenceCapable
public class ChurchServiceEntry2 {
    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Key key;

    // 목사님 성함
    @Persistent
    private String pastor;

    // 설교 제목
    @Persistent
    private String title;

    // 성경본문
    @Persistent
    private String verse;

    // 설교본문
    @Persistent
    private Text description;

    // 일시
    @Persistent
    private Date publishDate;
    // 설교 링크
    @Persistent
    private String svcVideoUrl;

    @Persistent
    private String svcAudioUrl;

    @Persistent
    private String length;

    public String getLength() {
	return length;
    }

    public void setLength(String length) {
	this.length = length;
    }

    public ChurchServiceEntry2(String title, String pastor, Text description,
	    String verse, Date publishDate, String svcVideoUrl,
	    String svcAudioUrl, String length) {
	this.title = title;
	this.pastor = pastor;
	this.description = description;
	this.verse = verse;
	this.publishDate = publishDate;
	this.svcVideoUrl = svcVideoUrl;
	this.svcAudioUrl = svcAudioUrl;
    }

    public String getPastor() {
	return pastor;
    }

    public void setPastor(String pastor) {
	this.pastor = pastor;
    }

    public String getTitle() {
	return title;
    }

    public void setTitle(String title) {
	this.title = title;
    }

    public Key getKey() {
	return key;
    }

    public void setKey(Key key) {
	this.key = key;
    }

    public String getAuthor() {
	return pastor;
    }

    public void setAuthor(String author) {
	this.pastor = author;
    }

    public Text getDescription() {
	return description;
    }

    public void setDescription(Text description) {
	this.description = description;
    }

    public String getVerse() {
	return verse;
    }

    public void setVerse(String verse) {
	this.verse = verse;
    }

    public String getSvcVideoUrl() {
	return svcVideoUrl;
    }

    public void setSvcVideoUrl(String svcVideoUrl) {
	this.svcVideoUrl = svcVideoUrl;
    }

    public String getSvcAudioUrl() {
	return svcAudioUrl;
    }

    public void setSvcAudioUrl(String svcAudioUrl) {
	this.svcAudioUrl = svcAudioUrl;
    }

    public Date getPublishDate() {
	return publishDate;
    }

    public void setPublishDate(Date publishDate) {
	this.publishDate = publishDate;
    }

}
